package com.ibsolutions.epersely;

import java.text.NumberFormat;
import java.util.Locale;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class BudgetActivity extends Activity {

	private TransactionMgr transactionMgr;
	private TextView budget;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.budget);
		
		transactionMgr = new TransactionMgr(this);
		budget = (TextView)findViewById(R.id.budget_state);
		transactionMgr.open();
		
		String budgetStr = NumberFormat
				.getCurrencyInstance(new Locale("hu", "HU"))
				.format(transactionMgr.getBudget());
		
		budget.setText(budgetStr);
		transactionMgr.close();
		//teszt comment
	}
}
